package com.hyb.hybmodulesblog.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 评论表增删改查对象 comment
 * 
 * @author ruoyi
 * @date 2023-03-08
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long id;

    /** 文章id */
    @Excel(name = "文章id")
    private Long articleId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String userNickName;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String userAvatar;

    /** 一级/二级评论 */
    @Excel(name = "一级/二级评论")
    private Long level;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 喜欢人数/点赞人数 */
    @Excel(name = "喜欢人数/点赞人数")
    private Long thumbCount;

    /** 踩踏人数 */
    @Excel(name = "踩踏人数")
    private Long trampleCount;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    /** 标签 */
    @Excel(name = "标签")
    private String label;

    /** 父级评论id */
    @Excel(name = "父级评论id")
    private Long parentId;

    /** 评论对象id/评论谁/使用评论表id */
    @Excel(name = "评论对象id/评论谁/使用评论表id")
    private Long commentObjId;

    /**  */
    private String pf1;

    /**  */
    private String pf2;

    /**  */
    private String pf3;

    /**  */
    private String pf4;

    /**  */
    private String pf5;


    private List<Comment> list;

    public List<Comment> getList() {
        return list;
    }

    public void setList(List<Comment> list) {
        this.list = list;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserNickName(String userNickName) 
    {
        this.userNickName = userNickName;
    }

    public String getUserNickName() 
    {
        return userNickName;
    }
    public void setUserAvatar(String userAvatar) 
    {
        this.userAvatar = userAvatar;
    }

    public String getUserAvatar() 
    {
        return userAvatar;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setThumbCount(Long thumbCount) 
    {
        this.thumbCount = thumbCount;
    }

    public Long getThumbCount() 
    {
        return thumbCount;
    }
    public void setTrampleCount(Long trampleCount) 
    {
        this.trampleCount = trampleCount;
    }

    public Long getTrampleCount() 
    {
        return trampleCount;
    }
    public void setCommentTime(Date commentTime) 
    {
        this.commentTime = commentTime;
    }

    public Date getCommentTime() 
    {
        return commentTime;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setCommentObjId(Long commentObjId) 
    {
        this.commentObjId = commentObjId;
    }

    public Long getCommentObjId() 
    {
        return commentObjId;
    }
    public void setPf1(String pf1) 
    {
        this.pf1 = pf1;
    }

    public String getPf1() 
    {
        return pf1;
    }
    public void setPf2(String pf2) 
    {
        this.pf2 = pf2;
    }

    public String getPf2() 
    {
        return pf2;
    }
    public void setPf3(String pf3) 
    {
        this.pf3 = pf3;
    }

    public String getPf3() 
    {
        return pf3;
    }
    public void setPf4(String pf4) 
    {
        this.pf4 = pf4;
    }

    public String getPf4() 
    {
        return pf4;
    }
    public void setPf5(String pf5) 
    {
        this.pf5 = pf5;
    }

    public String getPf5() 
    {
        return pf5;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("articleId", getArticleId())
            .append("userId", getUserId())
            .append("userNickName", getUserNickName())
            .append("userAvatar", getUserAvatar())
            .append("level", getLevel())
            .append("content", getContent())
            .append("status", getStatus())
            .append("thumbCount", getThumbCount())
            .append("trampleCount", getTrampleCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("commentTime", getCommentTime())
            .append("label", getLabel())
            .append("parentId", getParentId())
            .append("commentObjId", getCommentObjId())
            .append("pf1", getPf1())
            .append("pf2", getPf2())
            .append("pf3", getPf3())
            .append("pf4", getPf4())
            .append("pf5", getPf5())
            .toString();
    }
}
